<?php
error_reporting(E_ALL|E_STRICT);
date_default_timezone_set("Europe/Berlin");

set_include_path("." . PATH_SEPARATOR . "./library" 
. PATH_SEPARATOR . "./application/models" 
. PATH_SEPARATOR . get_include_path());

include "Zend/Loader.php";

Zend_Loader::loadClass("Zend_Controller_Front");
Zend_Loader::loadClass("Zend_Form");
Zend_Loader::loadClass("Zend_Form_Element_Text");
Zend_Loader::loadClass("Zend_Layout");
Zend_Loader::loadClass("Zend_DB");
Zend_Loader::loadClass("Zend_DB_Table");
Zend_Loader::loadClass("Zend_Auth");
Zend_Loader::loadClass("Zend_Auth_Adapter_DbTable");
Zend_Loader::loadClass("Zend_Debug");


Zend_Layout::startMvc(); // this gets Zend_Layout going

//Frontcontroller setup

$frontController = Zend_Controller_Front::getInstance();
$frontController->throwExceptions(true);
$frontController->setControllerDirectory("./application/controllers");

//run!
$frontController->dispatch();